﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkillifyMaster.master" AutoEventWireup="true" CodeFile="CreateTestPageThree.aspx.cs" Inherits="CreateTestPage3Try" %>

<%@ Register src="~/UserControls/UserSelection.ascx" tagname="UserSelection" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style6
        {
            width: 487px;
        }
        .style8
        {
            width: 189px;
        }
        .style10
        {
            width: 79px;
        }
        .style11
        {
            width: 113px;
        }
        .style12
        {
            height: 34px;
        }
        .style13
        {
            height: 34px;
            width: 114px;
        }
        .style17
        {
            width: 114px;
            height: 38px;
        }
        .style18
        {
            height: 38px;
        }
        .style19
        {
            width: 114px;
            height: 46px;
        }
        .style20
        {
            height: 46px;
        }
        .style21
        {
            width: 114px;
        }
    </style>

    <script type="text/javascript" language="javascript">
        function check(value) {


            var ddlVal = document.getElementsByName("Assignment")
            var pnl = document.getElementById("pnlSubject");
            if (ddlVal = "2") {

                document.formTable.disabled = false;

            }
            else {
                document.formTable.disabled = true;

            }
        }

        function OnClick() {
            if (divStartDtCalendar.style.display == "none") {
                divStartDtCalendar.style.display = "";

            }

            else {
                divStartDtCalendar.style.display = "none";

            }


        }
        function OnCalendarClick() {
            if (divEndDtCalendar.style.display == "none") {
                divEndDtCalendar.style.display = "";

            }

            else {
                divEndDtCalendar.style.display = "none";

            }


        }

        //            function change() {
        //                alert(divCalendar.childNodes.item.display);
        //                //ddlStartDate.text = divCalendar.nodeValue;
        //            }

    
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="100%">
    <tr>
        <td align="left">
            <h2><asp:Label ID="lablCreatetest" runat="server" Text="Create Test"></asp:Label></h2>
        </td>

        <td align="right">
            <h2><asp:Label ID="lablConfNotify" runat="server" Text="Configure And Notify"></asp:Label></h2>
        </td>
    </tr>

    <tr>
        <td colspan="2">
            <table align="left" cellspacing="2" style="border: 4px outset orange;" width="100%">
                <tr>
                    <td class="style6">
                        <b><asp:Label ID="lablMessage" runat="server" Text="Target User Selection – Group / User Selection"></asp:Label></b> 
                    </td>

                    <td>
                    </td>
                </tr>

                <tr>
                    <td class="style6">

                        <uc1:UserSelection ID="UserSelection1" runat="server" />

                    </td>

                    <td>
                    </td>
                </tr>

                <tr>
                    <td colspan="2">
                        <table width="100%">
                            <tr>
                               <td>
                                    <table width="100%">
                                         <tr>
                                            <td class="style11">
                                                <asp:Label ID="lablStartDt" runat="server" Text="Start Date"></asp:Label>
                                            </td>

                                            <td class="style8">
                                                <asp:TextBox id="txtStartDate" runat="server"></asp:TextBox>
                                                <INPUT type="button" value=":::" onclick="OnClick()"
                                                    style="border-style: #cc7a24; background-color: #e49642;">
                                                <div id="divStartDtCalendar" style="DISPLAY: none; POSITION: absolute">
                                                      <asp:Calendar id="CalendarDisplay" runat="server" BorderWidth="2px" OnSelectionChanged="CalendarDisplay_SelectionChanged"
                                                                    BackColor="White" Width="200px"
                                                        ForeColor="Black" Height="180px" Font-Size="8pt"
                                                                          Font-Names="Verdana" BorderColor="#999999"
                                                        BorderStyle="Outset" DayNameFormat="FirstLetter" CellPadding="4">
                                                        <TodayDayStyle ForeColor="Black" BackColor="#CCCCCC">
                                                          </TodayDayStyle>
                                                        <SelectorStyle BackColor="#CCCCCC"></SelectorStyle>
                                                        <NextPrevStyle VerticalAlign="Bottom"></NextPrevStyle>
                                                        <DayHeaderStyle Font-Size="7pt" Font-Bold="True"
                                                                        BackColor="#CCCCCC"></DayHeaderStyle>
                                                        <SelectedDayStyle Font-Bold="True" ForeColor="White"
                                                                          BackColor="#666666"></SelectedDayStyle>
                                                        <TitleStyle Font-Bold="True" BorderColor="Black"
                                                                    BackColor="#999999"></TitleStyle>
                                                        <WeekendDayStyle BackColor="#FFFFCC"></WeekendDayStyle>
                                                        <OtherMonthDayStyle ForeColor="#808080"></OtherMonthDayStyle>
    
                                                      </asp:Calendar>
                                                    </div>
                                                <asp:RequiredFieldValidator ID="reqStartDt" runat="server" 
                                                    ControlToValidate="txtStartDate" ErrorMessage="Please Give Start Date" 
                                                    ForeColor="Red">*</asp:RequiredFieldValidator>
                                            </td>

                                            <td class="style10">
                                                <asp:Label ID="lablEndDt" runat="server" Text="End Date"></asp:Label>
                                            </td>

                                            <td>
                                                <asp:TextBox id="txtEndDate" runat="server"></asp:TextBox>
                                                <INPUT type="button" value=":::" onclick="OnCalendarClick()" 
                                                   style="border-style: #cc7a24; background-color: #e49642">
                                                <div id="divEndDtCalendar" style="DISPLAY: none; POSITION: absolute">
                                                  <asp:Calendar id="cldDisplay" runat="server" BorderWidth="2px" OnSelectionChanged="CalendarEndDt_SelectionChanged"
                                                                BackColor="White" Width="200px"
                                                    ForeColor="Black" Height="180px" Font-Size="8pt"
                                                                      Font-Names="Verdana" BorderColor="#999999"
                                                    BorderStyle="Outset" DayNameFormat="FirstLetter" CellPadding="4">
                                                    <TodayDayStyle ForeColor="Black" BackColor="#CCCCCC">
                                                      </TodayDayStyle>
                                                    <SelectorStyle BackColor="#CCCCCC"></SelectorStyle>
                                                    <NextPrevStyle VerticalAlign="Bottom"></NextPrevStyle>
                                                    <DayHeaderStyle Font-Size="7pt" Font-Bold="True"
                                                                    BackColor="#CCCCCC"></DayHeaderStyle>
                                                    <SelectedDayStyle Font-Bold="True" ForeColor="White"
                                                                      BackColor="#666666"></SelectedDayStyle>
                                                    <TitleStyle Font-Bold="True" BorderColor="Black"
                                                                BackColor="#999999"></TitleStyle>
                                                    <WeekendDayStyle BackColor="#FFFFCC"></WeekendDayStyle>
                                                    <OtherMonthDayStyle ForeColor="#808080"></OtherMonthDayStyle>
    
                                                  </asp:Calendar>
                                                </div>
                                                <asp:RequiredFieldValidator ID="reqEndDt" runat="server" 
                                                    ControlToValidate="txtEndDate" ErrorMessage="Please Give End date" 
                                                    ForeColor="Red">*</asp:RequiredFieldValidator>
                                            </td>

                                         </tr>

                                         
                                     </table>
                                </td> 
                            </tr>
                        </table>
                    </td>
                </tr>

                <tr>
                    <td colspan="2">
                        <table width="100%">
                            <tr>
                                <td class="style13">
                                </td>

                                <td class="style12">
                                    <asp:CheckBox ID="chkSendCumulative" runat="server" Text="Send Cumulative Report" />
                                </td>
                            </tr>

                            <tr>
                                <td class="style13">
                                    <asp:Label ID="lablNoAtt" runat="server" Text="No Of Attempts"></asp:Label>
                                </td>

                                <td class="style12">
                                    <asp:RadioButton ID="rdoLimited" runat="server" GroupName="g2" 
                                        Text="Limited" AutoPostBack="True" 
                                        oncheckedchanged="rdoLimited_CheckedChanged" Checked="True" />
                                        &nbsp;&nbsp&nbsp;&nbsp&nbsp;&nbsp
                                        <asp:RadioButton ID="rdoUnlimited" runat="server" GroupName="g2" 
                                        Text="Unlimited" AutoPostBack="True" 
                                        oncheckedchanged="rdoUnlimited_CheckedChanged" /> 
                                </td>
                            </tr>

                            <tr>
                                <td>
                                    &nbsp;</td>

                                <td>
                                    &nbsp;</td>
                            </tr>

                            <tr>
                                <td>
                                    <asp:Label ID="lablAssignTask" runat="server" Text="Assign Task"></asp:Label>
                                </td>

                                <td class="style18">
                                    <asp:DropDownList ID="ddlAssignTask" runat="server" Width="100px">
                                        <asp:ListItem>Scheduled</asp:ListItem>
                                        <asp:ListItem>InProgress</asp:ListItem>
                                        <asp:ListItem>Completed</asp:ListItem>
                                        <asp:ListItem>Pending</asp:ListItem>
                                    </asp:DropDownList>
                                    &nbsp;
                                    </td>
                            </tr>

                            <tr>
                                <td class="style17">
                                </td>

                                <td class="style18">
                                    <asp:CheckBox ID="chkNotify" runat="server" Text="Notify Test Taker" />
                                </td>
                            </tr>

                            <tr>
                                <td class="style19">
                                </td>

                                <td class="style20">
                                     <asp:Button ID="btnBack" runat="server" Text="Back" BackColor="#E49642" 
                                        BorderColor="#CC7A24" ForeColor="White" onclick="btnBack_Click" 
                                         CausesValidation="False"/>
                                        &nbsp;
                                    <asp:Button ID="btnClear" runat="server" Text="Clear" 
                                        onclick="btnClear_Click" BackColor="#E49642" BorderColor="#CC7A24" 
                                        ForeColor="White" CausesValidation="False" />
                                        &nbsp;&nbsp;
                                    <asp:Button ID="btnNext" runat="server" Text="Save &amp; Complete Test" onclick="btnNext_Click" 
                                        BackColor="#E49642" BorderColor="#CC7A24" ForeColor="White" />
                                     &nbsp;&nbsp;
                                    <asp:Button ID="btnMove" runat="server" Text="Go To ManageTest"
                                        BackColor="#E49642" BorderColor="#CC7A24" ForeColor="White" 
                                        Visible="False" PostBackUrl="~/Admin/ManageTest.aspx" 
                                         CausesValidation="False" />
                                </td>
                            </tr>

                            <tr>
                                <td class="style21">
                                </td>

                                <td>
                                    <asp:Label ID="lablMess" runat="server" ForeColor="Red"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>

                </table>
        </td>
    </tr>
</table>

</asp:Content>

